package com.louis.autoFill.service.impl;

import com.louis.autoFill.dao.UserDao;
import com.louis.autoFill.dao.impl.UserDaoImpl;
import com.louis.autoFill.service.UserService;

/**
 * @author XRY
 * @date 2023年06月25日9:10
 */
public class UserServiceImpl implements UserService {
    private UserDao userDao;

    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }
    @Override
    public void addUserService() {
        System.out.println("我是UserService");
        //调用方法实现
        userDao.addUserDao();
        //原始方法调用实现
//        UserDao userDao = new UserDaoImpl();
//        userDao.addUserDao();
    }
}
